Skip to content

ssp: power down on pause - #3615

Closed
abonislawski wants to merge 1 commit into
thesofproject:masterfrom
abonislawski:ssp_mn_power_down
Closed

abonislawski wants to merge 1 commit into
thesofproject:masterfrom
abonislawski:ssp_mn_power_down

Conversation

@abonislawski

Copy link
Copy Markdown
Member

This patch will turn off ssp when not used and allow to
power down more dsp clocks

Signed-off-by: Adrian Bonislawski adrian.bonislawski@linux.intel.com

This patch will turn off ssp when not used and allow to
power down more dsp clocks

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Just needs some more comments. Btw any impact with the pause SSP work from @ktrzcinx and @slawblauciak ?

if (ssp->state[SOF_IPC_STREAM_CAPTURE] == COMP_STATE_PREPARE &&
ssp->state[SOF_IPC_STREAM_PLAYBACK] == COMP_STATE_PREPARE) {
ssp_update_bits(dai, SSCR0, SSCR0_SSE, 0);
mn_reg_write(MN_MDIVCTRL, 0, 0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useful to have an inline comment here stating we are powering off.


if (ssp->state[SOF_IPC_STREAM_CAPTURE] == COMP_STATE_PAUSED &&
ssp->state[SOF_IPC_STREAM_PLAYBACK] == COMP_STATE_PAUSED) {
mn_reg_write(MN_MDIVCTRL, 0, 0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto for comment here too, this way its obvious to everyone.

@lgirdwood lgirdwood closed this Mar 28, 2021
@lgirdwood
lgirdwood deleted the branch thesofproject:master March 28, 2021 13:44
@paulstelian97

Copy link
Copy Markdown
Collaborator

Is this still needed? If so, please resubmit with "main" as PR base branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants